home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / GVECTORS.ZIP / XPAL.H < prev    next >
C/C++ Source or Header  |  1993-09-13  |  3KB  |  88 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPAL - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XPAL_H_
  22. #define _XPAL_H_
  23.  
  24. #define PAL_ROTATE_DOWN 0
  25. #define PAL_ROTATE_UP   1
  26.  
  27. /* FUNCTIONS =========================================================== */
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33.  
  34.  void x_get_pal_raw(       /* Read DAC palette into raw buffer       */
  35.               BYTE far * pal,
  36.               WORD num_colrs,
  37.               WORD start_index);
  38.  
  39.  void x_get_pal_struc(     /* Read DAC palette into annotated buffer */
  40.               BYTE far * pal,
  41.               WORD num_colrs,
  42.               WORD start_index);
  43.  
  44.  void x_put_pal_raw(       /* Write DAC palette from raw buffer      */
  45.               BYTE far * pal,
  46.               WORD num_colrs,
  47.               WORD start_index);
  48.  
  49.  void x_put_pal_struc(     /* Write DAC palette from annotated buffer*/
  50.               BYTE far * pal);
  51.  
  52.  x_set_rgb(                /* Set the RGB components of a color index*/
  53.               BYTE color,
  54.               BYTE red_c,
  55.               BYTE green_c,
  56.               BYTE blue_c);
  57.  
  58.  x_rot_pal_raw(           /* Rotate a raw palette buffer             */
  59.               BYTE far * pal,
  60.               WORD direction,
  61.               WORD num_colrs);
  62.  
  63.  void x_rot_pal_struc(    /* Rotate an anottated palette buffer      */
  64.               BYTE far * pal,
  65.               WORD direction);
  66.  
  67.  WORD x_cpcontrast_pal_struc(     /* Copy and contrast adjust annotated  */
  68.               BYTE far *src_pal,  /*  palette buffer                     */
  69.               BYTE far *dest_pal,
  70.               BYTE Intensity);
  71.  
  72.  void x_transpose_pal_struc(  /* Write DAC palette from annotated type*/
  73.               BYTE far * pal, /* buffer with a new offset             */
  74.               WORD StartColor);
  75.  
  76.  void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
  77.               BYTE far * pal,   /* type buffer with specified intensity  */
  78.               BYTE  intensity);
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84.  
  85. #endif
  86.  
  87.  
  88.